MPSetTaskStorageValue

Sets the storage value for a given index number.

OSStatus MPSetTaskStorageValue (
                     TaskStorageIndex index,
                     TaskStorageValue value);
index
A 32-bit value of type TaskStorageIndex specifying the index number whose storage value you want to set.

value
A value of type TaskStorageValue that specifies the value you want to set.

function result
A result code. See Result Codes for a list of possible values.
DISCUSSION
Typically you use MPSetTaskStorageValue to store pointers to task-specific structures or data.

Calling this function from within a task effectively assigns a value in a two-dimensional array cross-referenced by task storage index value and the task ID.

VERSION NOTES
Introduced with Multiprocessing Services 2.0.

SEE ALSO
The function MPGetTaskStorageValue .


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)